package com.ssl.mall.product.convert;

import com.ssl.mall.product.entity.Category;
import com.ssl.mall.product.entity.vo.CategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CategoryConvert {
    CategoryConvert INSTANCE = Mappers.getMapper(CategoryConvert.class);

    CategoryVO entity2VO(Category category);

    //  entitys ->  vos
    List<CategoryVO> entitys2VOs(List<Category> categories);
}
